package com.gp.service;

import com.github.pagehelper.PageInfo;
import com.gp.entity.User;
import com.gp.util.CommonResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 来一杯凉咖
 * @create 2022/3/10 8:16
 */
public interface UserService {
    List<User> findAllUser();
    PageInfo<User> getAllUserForPage(Integer page, Integer size);
    CommonResult editUser(User user);
    CommonResult deleteUserById(Integer userId);
//    CommonResult addRoleForUserByUserId(Integer userId);
    PageInfo<User> queryUser(Integer page, Integer size, @Param("uname") String uname, @Param("lname") String lname, @Param("email") String email, @Param("phone") String phone);
}
